package com.example.demo.create.factory.simple;

import com.example.demo.create.factory.entity.Computer;
import com.example.demo.create.factory.entity.Phone;

public class SimpleFactoryTest {


    public static void main(String[] args) {
        ElectricFactory electricFactory = new ElectricFactory();
        Computer computer = electricFactory.createComputer();
        computer.print();

        Phone phone = ElectricFactory.createPhone();
        phone.print();
    }

}
